package org.csu.measure;

import org.csu.measure.service.GetData;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;
import java.io.FileWriter;

@SpringBootApplication
@MapperScan("org.csu.measure.persistence")
public class MeasureApplication {

    public static void main(String[] args) throws Exception{
        SpringApplication.run(MeasureApplication.class, args);
//
//        String dir = "test.xml";
//        File file = new File(dir);
////如果文件不存在，创建文件
//        if (!file.exists())
//            file.createNewFile();
////创建FileWriter对象
//        FileWriter writer = new FileWriter(file);
////向文件中写入内容
//        writer.write("code");
//        writer.flush();
//        writer.close();
//
//        GetData data = new GetData();
//        data.getData();
    }

}
